package com.dykj.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * purchaseorderinfo
 * @author 
 */
public class Purchaseorderinfo implements Serializable {
    private Integer fdeptid;

    private String fheadselfp;

    private Long fauxprice;

    private Long fauxqty;

    private Long famount;

    private Integer fitemid;

    private Long fauxstockqty;

    private String fsupplyname;

    private Integer fsupplyid;

    private Date fdate;

    private String fdeptname;

    private String fitemname;

    private static final long serialVersionUID = 1L;

    public Integer getFdeptid() {
        return fdeptid;
    }

    public void setFdeptid(Integer fdeptid) {
        this.fdeptid = fdeptid;
    }

    public String getFheadselfp() {
        return fheadselfp;
    }

    public void setFheadselfp(String fheadselfp) {
        this.fheadselfp = fheadselfp;
    }

    public Long getFauxprice() {
        return fauxprice;
    }

    public void setFauxprice(Long fauxprice) {
        this.fauxprice = fauxprice;
    }

    public Long getFauxqty() {
        return fauxqty;
    }

    public void setFauxqty(Long fauxqty) {
        this.fauxqty = fauxqty;
    }

    public Long getFamount() {
        return famount;
    }

    public void setFamount(Long famount) {
        this.famount = famount;
    }

    public Integer getFitemid() {
        return fitemid;
    }

    public void setFitemid(Integer fitemid) {
        this.fitemid = fitemid;
    }

    public Long getFauxstockqty() {
        return fauxstockqty;
    }

    public void setFauxstockqty(Long fauxstockqty) {
        this.fauxstockqty = fauxstockqty;
    }

    public String getFsupplyname() {
        return fsupplyname;
    }

    public void setFsupplyname(String fsupplyname) {
        this.fsupplyname = fsupplyname;
    }

    public Integer getFsupplyid() {
        return fsupplyid;
    }

    public void setFsupplyid(Integer fsupplyid) {
        this.fsupplyid = fsupplyid;
    }

    public Date getFdate() {
        return fdate;
    }

    public void setFdate(Date fdate) {
        this.fdate = fdate;
    }

    public String getFdeptname() {
        return fdeptname;
    }

    public void setFdeptname(String fdeptname) {
        this.fdeptname = fdeptname;
    }

    public String getFitemname() {
        return fitemname;
    }

    public void setFitemname(String fitemname) {
        this.fitemname = fitemname;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Purchaseorderinfo other = (Purchaseorderinfo) that;
        return (this.getFdeptid() == null ? other.getFdeptid() == null : this.getFdeptid().equals(other.getFdeptid()))
                && (this.getFheadselfp() == null ? other.getFheadselfp() == null : this.getFheadselfp().equals(other.getFheadselfp()))
                && (this.getFauxprice() == null ? other.getFauxprice() == null : this.getFauxprice().equals(other.getFauxprice()))
                && (this.getFauxqty() == null ? other.getFauxqty() == null : this.getFauxqty().equals(other.getFauxqty()))
                && (this.getFamount() == null ? other.getFamount() == null : this.getFamount().equals(other.getFamount()))
                && (this.getFitemid() == null ? other.getFitemid() == null : this.getFitemid().equals(other.getFitemid()))
                && (this.getFauxstockqty() == null ? other.getFauxstockqty() == null : this.getFauxstockqty().equals(other.getFauxstockqty()))
                && (this.getFsupplyname() == null ? other.getFsupplyname() == null : this.getFsupplyname().equals(other.getFsupplyname()))
                && (this.getFsupplyid() == null ? other.getFsupplyid() == null : this.getFsupplyid().equals(other.getFsupplyid()))
                && (this.getFdate() == null ? other.getFdate() == null : this.getFdate().equals(other.getFdate()))
                && (this.getFdeptname() == null ? other.getFdeptname() == null : this.getFdeptname().equals(other.getFdeptname()))
                && (this.getFitemname() == null ? other.getFitemname() == null : this.getFitemname().equals(other.getFitemname()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFdeptid() == null) ? 0 : getFdeptid().hashCode());
        result = prime * result + ((getFheadselfp() == null) ? 0 : getFheadselfp().hashCode());
        result = prime * result + ((getFauxprice() == null) ? 0 : getFauxprice().hashCode());
        result = prime * result + ((getFauxqty() == null) ? 0 : getFauxqty().hashCode());
        result = prime * result + ((getFamount() == null) ? 0 : getFamount().hashCode());
        result = prime * result + ((getFitemid() == null) ? 0 : getFitemid().hashCode());
        result = prime * result + ((getFauxstockqty() == null) ? 0 : getFauxstockqty().hashCode());
        result = prime * result + ((getFsupplyname() == null) ? 0 : getFsupplyname().hashCode());
        result = prime * result + ((getFsupplyid() == null) ? 0 : getFsupplyid().hashCode());
        result = prime * result + ((getFdate() == null) ? 0 : getFdate().hashCode());
        result = prime * result + ((getFdeptname() == null) ? 0 : getFdeptname().hashCode());
        result = prime * result + ((getFitemname() == null) ? 0 : getFitemname().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fdeptid=").append(fdeptid);
        sb.append(", fheadselfp=").append(fheadselfp);
        sb.append(", fauxprice=").append(fauxprice);
        sb.append(", fauxqty=").append(fauxqty);
        sb.append(", famount=").append(famount);
        sb.append(", fitemid=").append(fitemid);
        sb.append(", fauxstockqty=").append(fauxstockqty);
        sb.append(", fsupplyname=").append(fsupplyname);
        sb.append(", fsupplyid=").append(fsupplyid);
        sb.append(", fdate=").append(fdate);
        sb.append(", fdeptname=").append(fdeptname);
        sb.append(", fitemname=").append(fitemname);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}